<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$category.name} {$category.page_title} {$site_info.site_name|default=''}</title>
<meta name="keywords" content="{$category.page_keywords},{$site_info.site_seo_keywords|default=''}"/>
<meta name="description" content="{$category.page_description},{$site_info.site_seo_description|default=''}">
<include file="public@head"/>

</head>
<body>
    <include file='public@nav'/>

    <!-- banner -->
    <include file="public@banner"/>


    <php>
        /*顶级分类ID*/
        $top_category_id = get_cat_parent_path($cat_id,true,'goods_category');

        

        /*顶级分类的子分类*/

        $categorys = cmf_get_goods_child_terms($top_category_id[0]);

        /*父级分类信息*/
        $new_category = model('goods_category')
                     -> where('id', $top_category_id[0])
                     -> order('list_order asc,id desc')
                     -> find();
        
        $category2['name']    = $new_category['name'];
        $category2['subname'] = $new_category['subname'];

        
 
   
   
    </php>

    <div class="main layout clearfix">
        <div class="oleft fl">
            <div class="title">
                <h4>{$category2.name|default=''}</h4>
                <span>{$category2.subname|default=''}</span>
            </div>
            <div class="lmenu">
                <ul>
                    <volist name='categorys' id='vo'>
                    <li <eq name="cat_id" value="$vo.id">class="on"</eq>>
                        <a href="{:cmf_url('goods/List/index',array('id'=>$vo['id']))}">{$vo.name}</a>
                    </li>
                    </volist>
                    
                </ul>
            </div>
            <div class="newsc">
                <h4>新闻动态</h4>
                <span>News</span>
            </div>
            <div class="newsz">
                <h4>联系我们</h4>
                <span>Contact us</span>
            </div>
        </div>

        <div class="oright fr">
            <div class="title clearfix">
                <div class="tav fl">{$category.name|default=''}</div>
                <div class="clumb clearfix fr">
                    当前位置：
                    <a href="/">首页</a>
                    <i>></i>
                    
                    <php>
                      
                        $cat_id = empty($cat_id) ? input('cid',0,'intval') : $cat_id ;
                        $breadcrumb = cmf_get_goods_breadcrumb($cat_id);

                    </php>

                    <volist name='breadcrumb' id='vo'>
                        <a href="{:url('goods/List/index',['id'=>$vo['id']])}">{$vo.name}</a>
                        <i>></i>
                    </volist>
                 
                    <span>{$category.name|default=''}</span>
                </div>
            </div>

            <div class="prolist">
                <ul class="clearfix">
                    <php>
                        $order = GSO;
                    </php>

                    <goods:goods item="vo" order="$order" page="6" field="goods.goods_id,goods_name,published_time,post_excerpt,goods.more,category_id"
                                             relation="categories"
                                             categoryIds="$ids"
                                             returnVarName="articles_data">

                    <li <if condition="$i % 3 eq 0">style='margin-right:0;'</if>>
                        <a href="{:cmf_url('goods/Details/index',array('id'=>$vo['goods_id'],'cid'=>$vo['category_id']))}">
                            <div class="pic">
                                <img src="{:cmf_get_image_url($vo.more.thumbnail)}">
                            </div>
                            <span>{$vo.goods_name}</span>
                        </a>
                    </li>
                    </goods:goods>
                    
                </ul>
                <div class="pages">
                    <page/>
                </div>
            </div>
        </div>
    </div>
    <include file='public@footer'/>
</body>
</html>

<include file='public@scripts'/>
<script type="text/javascript" src="__TMPL__/public/assets/js/lightbox.js"></script>

